package com.spic.business.train.autonomic.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spic.business.train.autonomic.domain.TrainAutonomicLearning;
import org.apache.ibatis.annotations.Param;

/**
 * 课件自主学习Mapper接口
 *
 * @author spic
 * @date 2021-10-21
 */
public interface TrainAutonomicLearningMapper extends BaseMapper<TrainAutonomicLearning> {
    /**
     * 查询课件自主学习
     *
     * @param id 课件自主学习主键
     * @return 课件自主学习
     */
    public TrainAutonomicLearning selectTrainAutonomicLearningById(Long id);

    /**
     * 查询课件自主学习列表
     *
     * @param trainAutonomicLearning 课件自主学习
     * @return 课件自主学习集合
     */
    public List<TrainAutonomicLearning> selectTrainAutonomicLearningList(TrainAutonomicLearning trainAutonomicLearning);


    /**
     * 修改课件自主学习
     *
     * @param trainAutonomicLearning 课件自主学习
     * @return 结果
     */
    public int updateTrainAutonomicLearning(TrainAutonomicLearning trainAutonomicLearning);

    /**
     * 删除课件自主学习
     *
     * @param id 课件自主学习主键
     * @return 结果
     */
    public int deleteTrainAutonomicLearningById(Long id);

    /**
     * 批量删除课件自主学习
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTrainAutonomicLearningByIds(@Param("ids") List<Long> ids);
}
